package org.utils.util;

import java.util.Enumeration;
import java.util.Random;

public class RandomEnumeration implements Enumeration
{
	protected int count = 0;
	protected Random random = null;

	public RandomEnumeration(int pCount)
	{
		random = new Random();
		count = pCount;
	}
	public boolean hasMoreElements()
	{
		return (count != 0);
	}
	public Object nextElement()
	{
		count--;
		return String.valueOf(random.nextLong());
	}
}